package com.yy.service;

import com.yy.mapper.RoleMapper;
import com.yy.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: yy
 * @Date 2021/11/14 12:50
 */
@Component
@Service
public class RoleService {
    @Resource
    @Autowired
    private RoleMapper roleMapper;

    public List<Role> getRoleList() {
        return roleMapper.getRoleList();
    }
}
